// 操作類型选项
export const OPERATE_TYPES = [
  { value: "1", label: "提現" },
  { value: "2", label: "代付" },
  { value: "3", label: "充值" },
];

// 订单狀態
export const ORDER_STATUSES = [
  { value: "1", label: "进行中" },
  { value: "5", label: "成功" },
  { value: "3", label: "失敗" },
];

//渠道申请审批-状态
export const APPLY_STATUSES = [
  { value: "1", label: "申请中" },
  { value: "2", label: "已通过" },
  { value: "3", label: "已拒绝" },
];

// 审核状态
export const AUDIT_STATUS = [
  {
    value: 1,
    label: '审核中'
  },{
    value: 2,
    label: '通过'
  },
  {
    value: 3,
    label: '拒绝'
  }
]

// 渠道状态
export const CHANNEL_STATUS = [
  {
    value: 1,
    status: '正常'
  },{
    value: 9,
    status: '停用'
  }
]


export const getOperateTypeLabel = (value) => {
  const operateType = OPERATE_TYPES.find((item) => item.value === String(value));
  return operateType ? operateType.label : "";
};

export const getOrderStatusLabel = (value) => {
  const orderStatus = ORDER_STATUSES.find((item) => item.value === String(value));
  return orderStatus ? orderStatus.label : "";
};

//渠道申请审批状态
export const getSelApplyListLabel = (value) => {
  const selApplyStatus = APPLY_STATUSES.find((item) => item.value === String(value));
  return selApplyStatus ? selApplyStatus.label : "";
};


export const getAuditStatusLabel = (value) => {
  const auditStatus = AUDIT_STATUS.find((item) => item.value === value);
  return auditStatus ? auditStatus.label : "";
};

export const getChannelStatusLabel = (value) => {
  const channelStatus = CHANNEL_STATUS.find((item) => item.value === value);
  return channelStatus ? channelStatus.status : "";
};
